package com.own.constant;

import java.io.Serializable;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;

/**
 * ConstantCommon
 *
 * @author chenxueli
 * @date 2023-08-04 13:53:44
 */
public final class ConstantCommon implements Serializable {

    public static final String TRUE = "true";
    public static final String FALSE = "false";

    /**
     * 日志链路跟踪中的MDC中的字段名称
     */
    public static final String TRACE_ID = "traceId";

    /**
     * 越权标识
     */
    public static final String ULTRA_VIS = "own";
    /**
     * 星（表示全匹配）
     */
    public static final String STAR = "*";
    /**
     * 点
     */
    public static final String POINT = ".";
    /**
     * redis键的分隔符
     */
    public static final String REDIS_SEPARATE = ":";
    /**
     * 统一编码
     */
    public static final String CHARSET_UTF_8 = StandardCharsets.UTF_8.name();
    /**
     * redis存储前缀
     */
    public static final String REDIS_PREFIX = "o" + REDIS_SEPARATE;
    /**
     * 空数据
     */
    public static final String NONE = "none";
    /**
     * 请求成功的code值
     */
    public static String SUCCESS_CODE = "00000";
    /**
     * 超级管理员id列表
     */
    public static List<String> ADMINISTRATOR_ID_LIST = new ArrayList<>();

}
